package io.renren.modules.blog.dto;

import java.util.Date;

import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.DefaultGroup;
import io.renren.common.validator.group.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;
@Data
@ApiModel(value = "")
public class BlogTagDto implements Serializable {
    private static final long serialVersionUID = 1L;


    @Null(message = "{BlogTag.id.require}", groups = AddGroup.class)
    @NotNull(message = "{BlogTag.id.require}", groups = UpdateGroup.class)
    private Long id;

    @ApiModelProperty(value = "标签名称")
    @NotNull(message = "{BlogTag.name.require}", groups = DefaultGroup.class)
    private String name;

    @ApiModelProperty(value = "创建时间")
    private Date createDate;

    @ApiModelProperty(value = "更新时间")
    private Date updateDate;


}
